# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-net-frame-layer-icmp6
_pkgname=Net-Frame-Layer-ICMPv6
pkgver=1.11
pkgrel=7
pkgdesc='Internet Control Message Protocol v6 layer object.'
arch=('any')
url='http://search.cpan.org/~gomor/Net-Frame-Layer-ICMPv6/lib/Net/Frame/Layer/ICMPv6.pm'
license=('GPL' 'PerlArtistic')
depends=('perl')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/G/GO/GOMOR/$_pkgname-$pkgver.tar.gz")
sha512sums=('719e4fe0ad12968f4e05ba606024644c4883eb112ff9722460cec76324c65c4ea26ab87f1e04687a50d97b097b8c7420d897d65b71b83fc0e72296345716e9db')

prepare() {
  cd "$_pkgname-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
  cd "$_pkgname-$pkgver"

  make
}

package() {
  cd "$_pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

